package Operations.Calculate;
import Data.DbData;
import GUI.ResultData;
import java.util.ArrayList;

/**
 * @author Martin
 * @version 1.0
 * @created 24-III-2012 8:04:58
 */
public abstract class ACalculate implements Runnable{

	protected ArrayList<DbData> dbData;
	protected ACalculate next;
	protected ResultData resultData;
	//public ACalculate m_ACalculate;

    public ACalculate(ArrayList<DbData> dbData, ACalculate next, ResultData resultData) {
        this.dbData = dbData;
        this.next = next;
        this.resultData = resultData;
    }
    /*
    public ACalculate getNext()
    {
        if (this.next==null)
            return null;
        else
            return next;
    }*/
    
    public void doOperation(){
        if(next!=null) next.doOperation();
    }

}